# -*- encoding: utf-8 -*-
"""
@File    : 爬取网页.py
@Time    : 2020/11/11 10:22
@Author  : lluyao
@Email   : lluyao61@163.com
@Software: PyCharm
"""
# import requests,re
# url='http://www.sucai8.cn'
# res = requests.get(url)
# res.encoding='utf-8'
# msg = res.text
# result = re.findall(r'<a.*?href="([/h].*?)"' , msg,re.M)
# for i in range(len(result)):
#     if re.findall(r'^/ ',result[i]):
#         result[i] = url + result[i]
# for i in set(result):
#     print(i)

# b = [1.239865,4.56,3.2,9.82356]
# s = map(lambda a:"%.2f"%a,b)
# print(list(s))
#
#
# c = [0.000564,0.456723,0.5,0.71345]
# s = map(lambda a:'%.2f%%'%(a*100),c)
# print(list(s))

# a = [1,2,3,4,5]
# b = 'span'
# c = [-1,-2,0,1,2]
#
# result1 = map(lambda x:str(x),a)
# result2 = map(lambda x:ord(x),b)
# result3 = map(lambda x:-x if x<0 else x ,c)
#
# print(list(result1))
# print(list(result2))
# print(list(result3))


from math import sqrt
result = filter(lambda x:int(sqrt(x))*int(sqrt(x))==x,range(1,101))
print(list(result))


